|
|
7.2 | RIP | ||
| 7.2.9 | Load balancing across multiple paths |
|
Load-balancing describes the ability of a
router to transmit packets to a destination IP address over more than
one path. Load balancing is a concept that allows a router to take
advantage of multiple best paths to a given destination. The paths are
derived either statically or with dynamic protocols, such as RIP,
EIGRP, OSPF, and IGRP. When a router learns multiple routes to
a specific network, the route with the lowest administrative distance
is installed in the routing table.
If the router receives and installs multiple paths with the same administrative distance and cost to a destination, load-balancing can occur. There can be up to six equal cost routes (a limit imposed by Cisco IOS on the routing table), but some Interior Gateway Protocols (IGPs) have their own limitation. EIGRP allows up to four equal cost routes. By default, most IP routing protocols install a maximum of four parallel routes in a routing table. Static routes always install six routes. The exception is BGP, which by default allows only one path to a destination. The range of maximum paths is one to six paths. To change the maximum number of parallel paths allowed, use the following command in router configuration mode:
IGRP can load balance up to six unequal links. RIP networks must have the same hop count to load balance, whereas IGRP uses bandwidth to determine how to load balance. Three ways to get to Network X:
Router E chooses the second path above, E-C-A with a metric of 20 as it is a lower cost than 30 and 45. When routing IP, the Cisco IOS offers two methods of load balancing, per-packet and per-destination load balancing. If process switching is enabled, the router will alternate paths on a per-packet basis. If fast switching is enabled, only one of the alternate routes will be cached for the destination address, so all packets in the packet stream bound for a specific host will take the same path. Packets bound for a different host on the same network may use an alternate route, traffic is load balanced on a per-destination basis.
|